/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.wpi.first.wpilibj.templates.subsystems;

import edu.wpi.first.wpilibj.command.Subsystem;
import edu.wpi.first.wpilibj.Servo;

/**
 *
 * @author zanish
 */
public class LoadServo extends Subsystem {
    // Put methods for controlling this subsystem
    // here. Call these from Commands.
    Servo servo;

    public void initDefaultCommand() {
        // Set the default command for a subsystem here.
        //setDefaultCommand(new MySpecialCommand());
    }
    
    public LoadServo(){
        servo = new Servo(8);
    }
    
    public void setPos(double pos){
        servo.set(pos);
    }
    
    public double getPos(){
        double pos = servo.get();
        return pos;
    }
    
}
